using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SoldierGravity : MonoBehaviour
{
    Collider2D collider;
    Rigidbody2D player;

    // Start is called before the first frame update
    void Start()
    {
        collider = GetComponent<Collider2D>();
        player = GameObject.Find("Soldier").GetComponent<Rigidbody2D>();
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    private void OnTriggerEnter2D(Collider2D collision)
    {
        player.gravityScale = 10;
    }
}
